package com.ruoyi.business.domain.bo.admin;


import com.ruoyi.business.domain.bo.OrderFeeBo;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 运单新增业务对象
 *
 * @author 99
 * @date 2024-04-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AdminWaybillAddBo extends BaseEntity {

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long orderId;

    /**
     * 配送费
     */
    @Valid
    private List<OrderFeeBo> orderFeeList;

    /**
     * 司机类型bo
     */
    @Size(min = 1, message = "司机信息不能为空", groups = {AddGroup.class, EditGroup.class})
    @Valid
    private List<AdminWayBillFeeBo> wayBillFeeList;
}
